
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'mtsys-base-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array(
		'class' => 'form',
	),
)); ?>
<fieldset class="grey inline">
	<legend><?php echo Controller::getActionName($this->action->id); ?></legend>
	
	<div class="notification tip" style="display: block; "> 
    <span class="strong">Tip:</span> <?php echo $form->errorSummary($model); ?>
 <span class="close" title="Dismiss"></span>
    </div>   
    <?php echo $form->labelEx($model,'PROVINCE_ID'); ?>
    <?php 
	echo $model->PROVINCE->PROVINCE_NAME; 
	//$form->textField($model,'PROVINCE_ID',array('readonly'=>'readonly')); 
	?>
	<br/>
	<?php echo $form->labelEx($model,'CITY_ID'); ?>
    <?php 
	echo $model->CITY->CITY_NAME; 
	//echo $form->dropDownList($model,'CITY_ID',CHtml::listData($citys, 'CITY_ID', 'CITY_NAME')); 
	?>
	<br/>
	<?php echo $form->labelEx($model,'COUNTY_ID'); ?>
    <?php 
	echo $model->COUNTY->COUNTY_NAME; 
	//echo $form->dropDownList($model,'COUNTY_ID',CHtml::listData($countys, 'COUNTY_ID', 'COUNTY_NAME')); 
	?>

    <?php //echo $form->error($model,'BASE_NAME'); ?>
	<br/>
	<?php echo $form->labelEx($model,'BASE_TYPE'); ?>	
		<select name="MtsysBaseType[RECORD_ID]"> 
		<?php foreach($base_types as $bt){?>
		<option <?php echo ($model->BASE_TYPE == $bt->id)?'selected="selected"':'';?>value="<?php echo $bt->id;?>"><?php echo $bt->name;?>
	    <?php } ?>
		</option>		
		</select>
	
    <?php 
	//echo $form->dropDownList($model,'BASE_TYPE',CHtml::listData($base_types, 'RECORD_ID', 'BASE_TYPE'));
	?>
	<?php //echo $form->textField($model,'BASE_TYPE'); ?>
    <br/>
	
	<?php echo $form->labelEx($model,'BASE_NAME'); ?>
	<?php echo $form->textField($model,'BASE_NAME',array('size'=>50,'maxlength'=>50)); ?>
    <?php //echo $form->error($model,'BASE_NAME'); ?>
	<br/>

	<?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存',array('class'=>'button blue')); ?>
</fieldset>
<?php $this->endWidget(); ?>

